<div class="col-lg-12">
	<!--当前位置 start-->
	<div class="row">
		<div class="col-lg-12">
			<ol class="breadcrumb">
				<li><i class="fa fa-home mrg-r-sm"></i>首页
				</li>
				<li class="active"><span>会员卡设置页面</span>
				</li>
			</ol>
		</div>
	</div>
	<!--当前位置 end-->

	<!--代码写在这里-->
	<div class="row">

		<div class="col-lg-12">
			<div class="main-box">
				<header class="main-box-header clearfix">
					<h2>会员卡设置</h2>
				</header>
				<div class="main-box-body clearfix">
					<form class="form-horizontal" role="form">
						<div class="form-group">
							<label class="col-lg-2 control-label">会员卡号</label>
							<div class="col-lg-6">
								<input value=" {{card.card_id}}"  type="text" disabled class="form-control"/>
							</div>
						</div>
						<div class="form-group" >
							<label class="col-lg-2 control-label">身份证号</label>
							<div class="col-lg-6" ng-if="card.member.cardid == undefined">
								<div class="col-lg-10" style="padding-left: 0px;">					
									<input type="text" class="form-control" ng-model="member.cardid" placeholder="请输入完整的身份证号"/>
								</div>
								<a class="btn btn-success" ng-click="searchArchives()">搜索</a>
							</div>
							
							<div class="col-lg-6" ng-if="card.member.cardid != undefined">
								<input type="text" class="form-control" disabled  value=" {{card.member.cardid}}"/>
							</div>
						</div>
						<div class="form-group" >
							<label class="col-lg-2 control-label">老人姓名</label>
							<div class="col-lg-6">
								<input type="text" class="form-control" ng-model="member.name" ng-if="card.member.name == undefined"/>
								<input type="text" class="form-control" disabled ng-if="card.member.name != undefined" value="{{card.member.name}}"/>
							</div>
						</div>
						<div class="form-group" >
							<label class="col-lg-2 control-label">联系电话</label>
							<div class="col-lg-6">					
								<input type="text" class="form-control" ng-model="member.phone" ng-if="card.member.phone == undefined"/>
								<input type="text" class="form-control" disabled ng-if="card.member.phone != undefined" value=" {{card.member.phone}}"/>
							</div>
						</div>
						<div class="form-group">
							<div class="col-lg-offset-2 col-lg-6" ng-if="card.member.phone == undefined">
								<a class="btn btn-success" ng-click="dispatchCard( member )">确定</a>
								<a class="btn btn-danger" ng-if="manageName != 'admin'" href="#/card/index">取消</a>
								<a class="btn btn-danger" ng-if="manageName == 'admin'" href="#/card">取消</a>
							</div>
						</div>
						
						<h3>会员卡状态</h3>
						<div class="form-group">
				        	<label class="col-lg-2 control-label" ></label>
				        	<div class="col-lg-6">
								<div class="radio radio-inline">
									<input name="optionsRadios" id="optionsRadios1" value="1" ng-model="card.status" type="radio" ng-checked="card.status == 1">
									<label for="optionsRadios1">
										正常
									</label>
								</div>
								<div class="radio radio-inline">
									<input name="optionsRadios" id="optionsRadios2" value="2" ng-model="card.status" type="radio" ng-checked="card.status == 2">
									<label for="optionsRadios2">
										停用
									</label>
								</div>
                                <div class="radio radio-inline">
                                    <input name="optionsRadios" id="optionsRadios3" value="-1" ng-model="card.status" type="radio" ng-checked="card.status == -1">
                                    <label for="optionsRadios3">
                                        注销
                                    </label>
                                </div>
                                <div class="radio radio-inline" ng-show="renewTag == 0">
                                    <input name="optionsRadios" id="optionsRadios4" value="0" ng-model="card.status" type="radio" ng-checked="card.status == 0">
                                    <label for="optionsRadios4">
                                        解除绑定
                                    </label>
                                </div>
							</div>
				        </div>
				        
						<div class="form-group">
							<div class="col-lg-offset-2 col-lg-6">
								<a class="btn btn-success" ng-click="changeStatus( card )">确定</a>
								<a class="btn btn-danger" ng-if="manageName != 'admin'" href="#/card/index">取消</a>
								<a class="btn btn-danger" ng-if="manageName == 'admin'" href="#/card">取消</a>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>